import axios from "@/utils/request";

export const getListSocialPractice = (data) => {
    return axios({
        url: "/socialPractice",
        method: "get",
        data,
    })
}
export const updateSocialPractice = (data) => {
    return axios({
        url: "/socialPractice",
        method: "put",
        data,
    })
}
export const deleteSocialPractice = (id) => {
    return axios({
        url: "/socialPractice/" + id,
        method: "delete",
    })
}
export const addSocialPractice = (data) => {
    return axios({
        url: "/socialPractice",
        method: "post",
        data,
    })
}
export const batchDeleteSocialPractice=(data)=>{
    return axios({
        url: "/socialPractice//batchDelete",
        method: "delete",
    })
}